From ca64b2bb8026fb4510696736d2d887e21ac2bfa3 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 28 Jan 2024 21:15:53 +0000 Subject: Zero out GC children with explicit memory stores --- ...dlang.compiler.testing.snapshots.Snapshotter)].expected | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 9df8efff..cece95b3 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioDefineFunctionTests]/[method:pointersToFreeMutableVariablesAreStoredInAndLoadedFromEnvironment(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -69,6 +69,20 @@ Instructions: ( (call (local "closurePointer__f__0") "shed__runtime__gc_alloc" ((int-const (byte-size-of (struct ((struct (data-ptr int int32 int32)) (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))))) (int32-const (byte-offset-of (struct ((struct (data-ptr int int32 int32)) (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) (1 2))) (int32-const 2))) + ( + memory-store + pointer=(local "closurePointer__f__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 2 0) + value=(data-ptr-const null) + ) + ( + memory-store + pointer=(local "closurePointer__f__0") + layout=(struct ((struct (data-ptr int int32 int32)) (struct (function-ptr (struct ()) (struct (data-ptr data-ptr)))))) + offset=(1 2 1) + value=(data-ptr-const null) + ) ( memory-store pointer=(local "closurePointer__f__0") -- cgit v1.2.3